package com.dalin.platform.etl.action;

import com.dalin.framework.action.StrutsTwoAction;
import com.dalin.platform.etl.service.EtlService;
import com.dalin.platform.etl.vo.EtlTableInfoVo;
/*****************************************************************************
 * @content: 类信息                                                   *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-11-30                                                     *
 * @modDate: 2010-11-30                                                     *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class TableInfoAddModAction extends StrutsTwoAction{
	private EtlService etlService; // 
    private EtlTableInfoVo vo; // 




    public String execute() throws Exception {
        super.printInfo("", "===== this action begin");
    	try {
    		if (vo.getTableId() == null) {
    			etlService.addEtlTableInfo(vo);
    		} else {
    		 	etlService.modifyEtlTableInfo(vo);
            }
    	} catch (Exception e) {
    		setResContent(e);
    		return null;
    	}
		setResContent(true,"");
        super.printInfo("", "===== this action end");
        return null;
    }





	public EtlService getEtlService() {
		return etlService;
	}
	public void setEtlService(EtlService etlService) {
		this.etlService = etlService;
	}
	public EtlTableInfoVo getVo() {
		return vo;
	}

	public void setVo(EtlTableInfoVo vo) {
		this.vo = vo;
	}
}
